package cn.com.xinjinfu.pdoulcProduct.entity;

import java.io.Serializable;

/**
 * Created by android-adt on 2016/3/7.
 */
public class BuyActivityBean implements Serializable {
    private double balance;
    private double expectInterest;
    private double transferPrice;
    private double portionTransferAmount;
    private int transferStatus;
    private int havePortionNums;
    private int useCouponsCount;
    private Bid bid;
    private DemandTreasure demandTreasure;
    private int code;
    private String msg;

    public double getPortionTransferAmount() {
        return portionTransferAmount;
    }

    public void setPortionTransferAmount(double portionTransferAmount) {
        this.portionTransferAmount = portionTransferAmount;
    }

    public int getUseCouponsCount() {
        return useCouponsCount;
    }

    public void setUseCouponsCount(int useCouponsCount) {
        this.useCouponsCount = useCouponsCount;
    }

    public int getHavePortionNums() {
        return havePortionNums;
    }

    public void setHavePortionNums(int havePortionNums) {
        this.havePortionNums = havePortionNums;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Bid getBid() {
        return bid;
    }

    public void setBid(Bid bid) {
        this.bid = bid;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DemandTreasure getDemandTreasure() {
        return demandTreasure;
    }

    public void setDemandTreasure(DemandTreasure demandTreasure) {
        this.demandTreasure = demandTreasure;
    }

    public double getExpectInterest() {
        return expectInterest;
    }

    public void setExpectInterest(double expectInterest) {
        this.expectInterest = expectInterest;
    }

    public double getTransferPrice() {
        return transferPrice;
    }

    public void setTransferPrice(double transferPrice) {
        this.transferPrice = transferPrice;
    }

    public int getTransferStatus() {
        return transferStatus;
    }

    public void setTransferStatus(int transferStatus) {
        this.transferStatus = transferStatus;
    }

    @Override
    public String toString() {
        return "BuyActivityBean{" +
                "balance=" + balance +
                ", expectInterest=" + expectInterest +
                ", transferPrice=" + transferPrice +
                ", portionTransferAmount=" + portionTransferAmount +
                ", transferStatus=" + transferStatus +
                ", havePortionNums=" + havePortionNums +
                ", bid=" + bid +
                ", demandTreasure=" + demandTreasure +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }

    public static class Bid{
        private double amount;
        private double hasInvestedAmount;
        private double apr;
        private Repayment repayment;
        private int periodUnit;
        private int period;

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getHasInvestedAmount() {
            return hasInvestedAmount;
        }

        public void setHasInvestedAmount(double hasInvestedAmount) {
            this.hasInvestedAmount = hasInvestedAmount;
        }

        public Repayment getRepayment() {
            return repayment;
        }

        public void setRepayment(Repayment repayment) {
            this.repayment = repayment;
        }

        public double getApr() {
            return apr;
        }

        public void setApr(double apr) {
            this.apr = apr;
        }

        public int getPeriodUnit() {
            return periodUnit;
        }

        public void setPeriodUnit(int periodUnit) {
            this.periodUnit = periodUnit;
        }

        public int getPeriod() {
            return period;
        }

        public void setPeriod(int period) {
            this.period = period;
        }

        @Override
        public String toString() {
            return "Bid{" +
                    "amount=" + amount +
                    ", hasInvestedAmount=" + hasInvestedAmount +
                    ", apr=" + apr +
                    ", repayment=" + repayment +
                    ", periodUnit=" + periodUnit +
                    ", period=" + period +
                    '}';
        }

        public static class Repayment{
            private int id;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }


    }
    public static class DemandTreasure{
        private double amount;
        private double have_buy_amount;
        private String name;

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getHave_buy_amount() {
            return have_buy_amount;
        }

        public void setHave_buy_amount(double have_buy_amount) {
            this.have_buy_amount = have_buy_amount;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "DemandTreasure{" +
                    "amount=" + amount +
                    ", have_buy_amount=" + have_buy_amount +
                    '}';
        }
    }
}
